package com.tjbank.cssys.repository;

import com.tjbank.cssys.domain.CkOutsourcingCompanyAcceptLevel;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Repository
public interface CkOutsourcingCompanyAcceptLevelMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CkOutsourcingCompanyAcceptLevel record);

    int insertSelective(CkOutsourcingCompanyAcceptLevel record);

    CkOutsourcingCompanyAcceptLevel selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CkOutsourcingCompanyAcceptLevel record);

    int updateByPrimaryKey(CkOutsourcingCompanyAcceptLevel record);

    @Transactional(propagation = Propagation.REQUIRED, rollbackFor = RuntimeException.class)
    int batchInsert(List<CkOutsourcingCompanyAcceptLevel> datas);

    @Transactional(propagation = Propagation.REQUIRED, rollbackFor = RuntimeException.class)
    int setDelete(Map<String,Object> params);

    @Transactional(propagation = Propagation.REQUIRED, rollbackFor = RuntimeException.class)
    int deleteByCompanyId(Map<String,Object> params);
}